<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Contact Me</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

    <!-- Bootstrap styles -->
    <link rel="stylesheet" href="./Public/Home/css/bootstrap.min.css">

    <!-- Font-Awesome -->
    <link rel="stylesheet" href="./Public/Home/css/font-awesome/css/font-awesome.min.css">

    <!-- Google Webfonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600|PT+Serif:400,400italic' rel='stylesheet' type='text/css'>

    <!-- Styles -->
  <link rel="stylesheet" href="./Public/Home/css/style.css" id="theme-styles">

    <!--[if lt IE 9]>      
        <script src="js/vendor/google/html5-3.6-respond-1.1.0.min.js"></script>
    <![endif]-->
    
</head>
<body>
    <header>
        <div class="widewrapper masthead">
            <div class="container">
                <a href="index.html" id="logo">
                    <img src="./Public/Home/img/5.gif" alt="clean Blog" height="150" width="300">
                </a>

                <div id="mobile-nav-toggle" class="pull-right">
                    <a href="#" data-toggle="collapse" data-target=".clean-nav .navbar-collapse">
                        <i class="fa fa-bars"></i>
                    </a>
                </div>

                <nav class="pull-right clean-nav">
                    <div class="collapse navbar-collapse">
                        <ul class="nav nav-pills navbar-nav">
							<li>
								<a href="?c=Index">首页</a>
							</li>
							<li>
								<a href="?c=Index&a=lists">博文列表</a>
							</li>
							<li>
								<a href="?c=Index&a=about">关于我</a>
							</li>
							<li>
								<a href="?c=Index&a=message">留言</a>
							</li>
						</ul>
                    </div>
                </nav>        

            </div>
        </div>

        <div class="widewrapper subheader">
            <div class="container">
                <div class="clean-breadcrumb">
                    <a href="#">留言</a>
                </div>
                <div class="clean-searchbox">
                    <form action="#" method="get" accept-charset="utf-8">
                        
                        <input class="searchfield" id="searchbox" type="text" placeholder="Search">
                         <button class="searchbutton" type="submit">
                            <i class="fa fa-search"></i>
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </header>
    <!--留言板-->
    <div class="container">
        <div class="row">

                <h2 align="center" style="color: rgb(81,117,114)">留言板</h2>

            <{foreach $messages as $message}>
            <p class="panel">
            <p class="panel-head" style="background-color: rgb(223,240,216)">
                <span class="nickname" style="color: rgb(104,148,99)">
                    留言者: <{if <{$message.name}> neq ""}><{$message.name}><{else}>匿名<{/if}>
                </span>
                <span style="color: rgb(104,148,99)">|</span>
                <span class="time" style="float: right;color: rgb(104,148,99)">时间: <{$message.pubdate|date_format:'%Y-%m-%d %H:%M:%S'}></span>
            </p>
            <p class="panel-body">
                <span class="content">内容: <{$message.content}></span>
                <span class="time" style="float: right"><{$message.id}>楼</span>
            </p>
            <{/foreach}>
            <hr>
        </div>
    </div>

    <div class="widewrapper main">
        <div class="container">
            <div class="row">
                <div class="col-md-6 col-md-offset-3 clean-superblock" id="contact">


                    (<span style="color:red">昵称可以不写哦!</span>)
                    <form action="?c=Index&a=doAddMessage" method="post" accept-charset="utf-8" class="contact-form">
                        <input type="text" name="name" id="contact-name" placeholder="Name" class="form-control input-lg">
                        <input type="email" name="email" id="contact-email" placeholder="Email" class="form-control input-lg">
                        <textarea rows="10" name="content" id="contact-body" placeholder="Your Message" class="form-control input-lg"></textarea>
                        <div class="buttons clearfix">
                            <button type="submit" class="btn btn-xlarge btn-clean-one">Submit</button>
                        </div>                    
                    </form>
                </div>
            </div>        
        </div>
    </div>

   <footer>
        <div class="widewrapper footer">
            <div class="container">
                <div class="row">
                    <div class="col-md-4 footer-widget">
						<h3> <i class="fa fa-user"></i>上善若水</h3>

						<p>一个人孤独的活着，本是没有意思的事情。但是你活着,也许在前方就会遇见有意思的事，有趣的灵魂。</p>

					</div>

                    <div class="col-md-4 footer-widget">
						<h3> <i class="fa fa-pencil"></i> 友情链接</h3>
						<ul class="clean-list">
							<{foreach $links as $link}>
							<li><a target="_blank" href="<{$link.url}>"><{$link.domain}></a></li>
							<{/foreach}>
						</ul>
					</div>

                    <div class="col-md-4 footer-widget">
						<h3> <i class="fa fa-envelope"></i>Contact Me</h3>
						<p>qq：506717715</p>
						<p>微信：a506717715</p>
						<p>交换友链最好是技术类网站哦！</p>
						<div class="footer-widget-icon">
							<i class="fa fa-facebook"></i><i class="fa fa-twitter"></i><i class="fa fa-google"></i>
						</div>
					</div>
                   
                </div>
            </div>
        </div>
        <div class="widewrapper copyright">
                Copyright 2015
        </div>
    </footer>
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/modernizr.js"></script>

</body>
</html>